package classDemo.extenddemo;

/**
 * @author Ajie
 * @date 2022/6/21
 * @function
 */
public class ChildB extends Parent {
    //子类B继承父类所有属性与方法
    public String normalStr = "Normal member of child.";
    public static String staticStr = "Static member of child.";

    public void normalMethod(){
        System.out.println("Normal method of child.");
    }

    public static void staticMethod(){
        System.out.println("Static method of child.");
    }
}


